var e = require("../../../../@babel/runtime/helpers/interopRequireDefault")(require("../../../../@babel/runtime/regenerator")), t = require("../../../../@babel/runtime/helpers/asyncToGenerator"), r = require("../../../../poster/poster.js"), a = getApp();

Component({
    behaviors: [ r ],
    properties: {
        activeid: {
            value: 0,
            type: null
        }
    },
    data: {
        listData: {}
    },
    observers: {},
    methods: {
        getPosterPic: function() {
            var r = this;
            return t(e.default.mark(function t() {
                var s;
                return e.default.wrap(function(e) {
                    for (;;) switch (e.prev = e.next) {
                      case 0:
                        s = a.getNetAddresss("plugin.luck-draw.frontend.index.getPoster"), r.setData({
                            poster: ""
                        }), a._getNetWork({
                            showToastIn: !1,
                            url: s,
                            data: {
                                id: r.data.activeid
                            },
                            success: function(e) {
                                var t = e.data;
                                1 == t.result ? r.setData({
                                    poster: t.data.mini.poster
                                }) : wx.showToast({
                                    title: t.msg
                                });
                            },
                            complete: function() {
                                r.data.getFlag = !0;
                            }
                        });

                      case 3:
                      case "end":
                        return e.stop();
                    }
                }, t);
            }))();
        }
    }
});